package state;

public class StateTestMain {
    public static void main(String[] args) {
        VendingMachine vendingMachine = new VendingMachine();

        vendingMachine.insertCoin(); // Insert a coin
        vendingMachine.selectProduct(); // Try to select without coin
        vendingMachine.dispense(); // Try to dispense without coin

        vendingMachine.insertCoin(); // Insert another coin
        vendingMachine.selectProduct(); // Select product
        vendingMachine.dispense(); // Dispense product
    }
}
